SRM 625 Div 2 Problem 1-2