anyone can provide solution or some idea to the following question? thanks
Cap vols are normally quoted as a flat black or bachelier volatility that when used to price all the optionlets, will give the correct market price of the cap.
In your case, you will have to strip the caplet volatilities.
Example: you have the vol for the 1y cap and you have the vol for the 2y cap. Using the 1y vol for the caplets expiring the first year, find the vol for the caplets expiring in the second year that give you a market price equal to the 2y cap with a flat vol of the 2y vol.
Then use the same procedure for the 3y cap, with the 1y vol and the vol you found for the caplets expiring in the second year. Then same for 4th years and so forth...