ABC interview question

write a program to print star in specified pattern