Pergunta de entrevista da empresa Proptiger

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