[SRM 222] Div2 level1 String manipulation.