Find Smallest String After One Substring Reversal

Company: Chubb_India_26nov

Difficulty: medium