SRM 150 Div2 Level1 Solved.