Let's look at the answer, and see what is happening:
The compound interest on a sum of money for 2 years is rs 615 and the simple interest for the same period is rs 600. What is the principal?
The principal, as has been shown, is 6000, and the rate is 5% per annum. We are assuming, for lack of other information, that compound interest is compounded annually.
Simple interest for the first year is 5/100 * 6000 = 300. This is also the amount of compound interest, but this is added into the account, so the new principal is 6300.
Simple interest for the second year is 5/100*6000 = 300 again, since the principal has not changed. Compound interest for the second year is the same as simple interest on the increased principal, 6300: 5/100*6300 = 315.
Now where did the difference in the second year come from? We can write the new principal as 6000 + 300, and distribute the multiplication: 5/100*(6000 + 300) = 5/100*6000 + 5/100*300 = 300 + 15. So the difference in interest is exactly the interest on the interest (5% of the 300 that was earned the first year and added in to the principal.
Is this what you were saying? Or, if not, do you understand now?