SRM 331 - Div2 L1 [Simulation, String manipulation]