LeetCode
N-th Tribonacci Number
Click
here
for an explanation.