Right array is used to count number of continuous fibonacci numbers starting from right of current element
fibcount = 0 NEW_LINE for i in range ( n - 1 , - 1 , - 1 ) : NEW_LINE INDENT right [ i ] = fibcount NEW_LINE DEDENT