SRM 479 Div2 L1 iteration.