Whats the mistake

I have edited your code… Try to submit it now…

was my method wrong…i have used the hint given in the video

Yes, a little bit your approach wasnt working… thts why I have edited the code… If u didnt understood anything…pls let me know about it…