You are using the term 'protected against inflation'. When I hear that, it implies to me that the intent is to ensure that rising inflation does not have a negative impact. Since this is a sales pitch from a whole-life insurance product, it doesn't surprise me that they are implying more protection than they actually offer.
In short - what happens if inflation is 8% next year, and every year after? Well, then the interest earned would be less than the inflation. And if inflation drops to 4%, then this product will do a lot better than inflation. This product does not change the return provided based on annual inflation amounts, so it has no ability to hedge against that risk.
Edit to include calcs now that we understand the product you're looking at:
First, observe that India's current fixed rate of return on government bonds appears to be 7.29% for a 10 year term [http://www.worldgovernmentbonds.com/country/india/#:~:text=The%20India%2010Y%20Government%20Bond,last%20modification%20in%20September%202022).] We can consider that the 'base level' comparison of whether this product is a net benefit to you or not.
The Net Present Value of having to give up 30k per year for the next 5 years [starting today, and then every 12 months], is 130,954. The math to show this is:
30k / (1 + 7.29%)^0 = 30,000 [The value of 30k today, is 30k]
+ 30k / (1 + 7.29%)^1 = 27,961 [30k given up in 12 months, is worth 27k]
+ 30k / (1 + 7.29%)^2 = 26,061 [30k given up in 24 months is worth 26k, etc.]
+ 30k / (1 + 7.29%)^3 = 24,290
+ 30k / (1 + 7.29%)^4 = 22,640
= 130,954
This means that from a finance perspective, using the 7.29% comparative government rate to determine the time value of money, giving $30k per year for 5 years is the same as giving 130,954 today.
Now we can compare that with the value of receiving 250k at the end of 10 years [I believe per your wording the funds would be receivable at the end of 10 years, not in the beginning of the 10th year], which is $123,693, calculated as:
250k / (1 + 7.29%) ^ 10
Therefore, the present value of the amount to be received in 10 years is worth less than the value of the amounts being paid over the first 5 years!
We can see that instead of buying this product, your friend could simply purchase a government bond to receive a higher higher rate of interest. Whether that would lose other benefits I don't know, but it is easy to see that this doesn't seem to be the best value for money.