Pregunta de entrevista de Oracle

Problem solving, Java, Rest, Puzzles ,Reasoning