Amazon interview question

Solve 2 hackerrank problems (not really a question) ?