Amazon Interview Question

Non disclosure agreement. Check leetcode