I was practicing problem solving by JS.
What I was solving was the following problem, and I had to print out the following result according to n.
n