Amazon interview question

DSA are asked from medium to hard level