Printing mountain pattern

how do i add spaces between no in given problem

Refer this: