PayPal interview question

Puzzles and Logical Problems