Nth Tribonacci Number Leetcode Javascript Questions