Pregunta de entrevista de Oracle

some normal algorithm and design questions