Oracle Interview Question

Problem solving, Java, Rest, Puzzles ,Reasoning