Info Edge Interview Question

Related project,java,SQL,puzzles jug problem