Given an array of integers sorted in non-decreasing order, find the starting and ending position of a given target value. If the target is not found, return [-1, -1]. The algorithm must have O(log n) runtime complexity.
Click Run to execute sample tests.