Please explain the intuition?

This problem solution in hard.Please explain?