Amazon Interview Question

A Leetcode hard question in the full loop coding round, and a system design question in the behav- coding round