Once we reach middle of remainder array , we have to do operations based on x .
if ( i >= x // 2 ) : NEW_LINE INDENT if ( x % 2 == 0 ) : NEW_LINE INDENT if ( rem [ x // 2 ] > 1 ) : NEW_LINE DEDENT DEDENT