Info Edge interview question

Question related to Java, Testing, puzzles