Infoblox interview question

Asked to write ML and SQL code and review them.