SRM 609 Div 2 Problem 1-2