dp [ i ] [ j ] = number of possible strings such that '1' just appeared consecutively j times upto the ith index
dp [ i ] [ 0 ] = ( dp [ i - 1 ] [ 0 ] + dp [ i - 1 ] [ 1 ] + dp [ i - 1 ] [ 2 ] ) % MOD NEW_LINE