Project Euler 139 - Pythagorean Tiles

Official link: https://projecteuler.net/problem=139