Amazon Interview Question

Can't disclose but 2 LC medium problems.