Doubt --Recursion--Inverted triangle

code–https://ide.codingblocks.com/s/392703
ques–https://hack.codingblocks.com/app/contests/2022/214/problem