SAMB INFO Interview Question

program to print pattern