Qualcomm Interview Question

C: Structures, dynamic memory allocation,pattern printing