append character ( ' a ' + i ) in resultant string ' result ' by min ( count1 [ i ] , count2i ] ) times
for j in range ( 1 , min ( count1 [ i ] , count2 [ i ] ) + 1 ) : NEW_LINE INDENT result = result + chr ( ord ( ' a ' ) + i ) NEW_LINE DEDENT print ( result ) NEW_LINE