Find the start and end indexes of the number in the array