Pregunta de entrevista de Bloomberg

2 pointers leetcode question about valid triangle