Print Nth Fibonacci Number Leetcode Javascript Question