Pergunta de entrevista da empresa Bloomberg

2 pointers leetcode question about valid triangle