Smallest String After Reversals

Company: Autodesk_30sep

Difficulty: medium