Php While Loop Sql Query Compiler Codechef Ide