Optum Interview Question

program to print a number pattern like 1 121 12321