Cognizant Interview Question

Star pattern triangle problems in C