Pregunta de entrevista de Uber

Three Sum question from leetcode was asked