Please Help Me

Can anyone explan this (CodeChef: Practical coding for everyone) problem