Input 89 89 98 98 98 98 98 98 71 100 Output should be 6 but I am getting 8..