added solution to SRM 642 Div 2 Level One