Pergunta de entrevista da empresa Amazon

3 coding problems of incremental complexity.