Domanda di colloquio di Amazon

Part one was 2 programming questions.