PayPal interview question

Logic and math based puzzle