Mirror star pattern

https://hack.codingblocks.com/contests/c/474/168
http://ide.codingblocks.com/#/s/16704

help me with this