I wanted to know what insect it is and a solution for this. Please help me with this.
I'm not familiar with that particular creature, but it is definitely some sort of caterpillar! I would recommend neem oil for keeping these away. Here is a collection of articles that will show you how you can make many more natural solutions to your problem as well: https://www.gardeningknowhow.com/special/organic/