HackerRank Printing Pattern Using Loops problem solution in c - TheCScience