Right Triangles Leetcode Javascript Practice Programs