PayPal interview question

DSA: 2 Pointer Problem was asked in interview