Amazon interview question

DSA medium to hard difficulty is must