PayPal interview question

Puzzles, Optimization, Algorithms, Coding etc