Goldman Sachs interview question

Handcode pythagorean triples solution