Nth Tribonacci Number Leetcode Python