Amazon interview question

all leetcode hard questions were asked