Amazon Interview Question

They asked me to solve a hard LeetCode question