Info Edge interview question

Related project,java,SQL,puzzles jug problem