Check if current element is a fibonacci number
if ( arr [ i ] in hash ) : NEW_LINE INDENT fibcount += 1 NEW_LINE DEDENT else : NEW_LINE INDENT fibcount = 0 NEW_LINE DEDENT for i in range ( 0 , n ) : NEW_LINE res = max ( res , left [ i ] + right [ i ] ) NEW_LINE return res NEW_LINE