Convert relative index to Binary form and set 0 = a and 1 = b
while ( rel_ind > 0 ) : NEW_LINE INDENT if ( rel_ind % 2 == 1 ) : NEW_LINE INDENT string_list [ i ] = ' b ' NEW_LINE DEDENT rel_ind //= 2 NEW_LINE i += 1 NEW_LINE DEDENT