Welcome to the Ranch, Anshul and Mani!
Anshul: Thank you for using code tags on your first post! One thing: the preferred way to post errors is to copy and paste the text, not with a screenshot.
Mani, thank you for your contribution. A couple of things to keep in mind. Please
UseCodeTags (that's a link) when you are posting code. Also, in general, we don't post complete solutions to the OP's questions. Here I don't think it's a problem but next time try to guide the OP to the correct solution.