Solution to this challenge

please explain the solution
I am not able to understand it