@Rahul_Unnikrishnan I have watched this video . I am implementing the same. But for some reason the i=i+1 is not working .