Amazon interview question

3 coding problems of incremental complexity.