PayPal Interview Question

Couple of system design problems, DS Algo