Angry cybrog

someone can explain the solution for angy cybrog. this one ------->> Solution: 40928822 | CodeChef
this sol look cool but don no what doing