Amazon interview question

Easy alghoritmic programming question to solve