Printing Pattern Using Loops Hackerrank