Uber interview question

medium level string manipulation question, similar to string compression and expansion, expand the string 3[a]2[b]