PayPal Interview Question

Logic and math based puzzle