Pregunta de entrevista de Proptiger

Given an Array, check whether a Pythagorean triplet exists or not.