Integrant interview question

Database Task (Mysql) Problem solving task to be in any language ( I chose php)