HackerRank Small Triangles, Large Triangles in c problem solution - TheCScience