This problem can be solved by using Binary Search algorithm. Hence time complexity will be $ O(log n) $.
Strategies will be like this
1) Get the midpoint, and check the value at it
2) If the value is integer then directly move right
3) else if the value is a star then check whether it has integer at the immediate left position, if yes then print the location of the star, its the answer, else move to the left.