Nth Fibonacci Number Leetcode Javascript Practice