Hello @shubhamhalder0
There was a minor mistake. Here is the modified code.
I have marked the changes.