Project Euler 144 - Laser Beam Reflections

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