SRM 486 - Div 2 L1 [String manipulation]