Amazon Interview Question

Can't remember but it's Leetcode's medium difficult question