Anonymous interview question

Related to laravel , array and MySQL