Amazon Interview Question

A leetcode medium algorimic question