Amazon Interview Question

Was asked to solve a leetcode question