Amazon Interview Question

LPs and then LeetCode medium