Pregunta de entrevista de Townscript

Dsa question 3 sum problem