The Tribonacci sequence is defined by T(0)=0, T(1)=1, T(2)=1, and T(n)=T(n-1)+T(n-2)+T(n-3) for n>=3. Given n, return T(n). The input is JSON {n}.
Input: JSON {n}.
Output: Integer — the nth Tribonacci number.
Input: {"n":4}
Output: 4
Explanation: 0,1,1,2,4.Input: {"n":0}
Output: 0
Explanation: Base case.Input: {"n":25}
Output: 1389537
Explanation: T(25) = 1389537.0<=n<=37