PayPal interview question

Java concepts