Personality Traits

We live in a society where personality is a distant memory.

Nowadays personality is represented by strings. You are given two strings SSS and TTT and an integer kkk. You can apply following operation on the string SSS at most kkk times.


This is a companion discussion topic for the original entry at https://toph.co/p/personality-traits