IN this question CodeChef: Practical coding for everyone
please explain what is the significance of line -Both of them can select any single heap of rocks at a time and then pick up any number of rocks from that heap but alternatively.
Also explain the the logic that i can implement.