Infoblox interview question

Divisibility question (based on if-else)