Pregunta de entrevista de Agoda

Three sum algorithm question for coding