SRM 518 Div2 L1 [String manipulation]