Solve SRM 172, Div 2, Problem SkipRope