ABC Interview Question

write a program to print star in specified pattern