SRM 614 Div 2 Problem 1-2