Sponsored
Use these hints if you're stuck. Try solving on your own first.
Make an array F of length 38, and set F[0] = 0, F[1] = F[2] = 1.
Now write a loop where you set F[n+3] = F[n] + F[n+1] + F[n+2], and return F[n].
Solve with full IDE support and test cases