enter image description hereThe code works but I am confused. When n==1, I am assigning a=1, shouldn\'t that overwrite the value and return only 1?