This is yet another program to answer a problem in a book called algorithms.Here's the problem: 6.Predicting a finger count A little girl counts from 1 to 1000 using the fingers on her left hand as follows.She starts by calling her thumb 1,the first finger 2, middle finger 3, ring finger 4, and little finger 5.Then she reverses direction calling her ring finger 6, middle finger 7, the first finger 8, and her thumb 9, after which she calls her first finger 10 and so on.If she continues to count in this manner, on which finger will she stop?