eBay Interview Question

4 coding questions, 2 lc easy, and lc difficult.