my attempt at the triangle puzzle for the Software Engineer position at Yodle