Amazon interview question

Leetcode, please practice before interview