Solution to following link

Problem - C - Codeforces can anyone please tell the solution of the problem ??

Not my solution : Submission #61198089 - Codeforces

can we view the solutions in codeforces too??

and please provide some insights into the code