CarPro Systems Interview Question

Draw the pattern using C language