So the task is to make a pyramid shaped pattern using recursion only whereas the hight of is indicated by the number n and it should look as follows(considering for example