Tracxn Interview Question

Print a pattern.