TATA ELXSI Interview Question

C program with different patterned output.