SRM 602 & 603 DIV 2 easy

I can't understand SRM 602 DIV 2 mid problem...