Pregunta de entrevista de PayPal

DSA: 2 Pointer Problem was asked in interview