Return n 'th term of a series defined using below recurrence relation. f(n) is defined as  f(n) = f(n-1) + f(n-2) + f(n-3), n>=3 Base Cases :  f(0) = 0, f(1) = 1, f(2) = 1
int findNthTerm ( int n ) { int F [ 3 ] [ 3 ] = { { 1 , 1 , 1 } , { 1 , 0 , 0 } , { 0 , 1 , 0 } } ;