Amazon interview question

easy to normal level coding questions.