Given a sorted array `nums`, implement `searchRange(nums, target)` returning `[first, last]` indices of `target`, or `[-1, -1]` if absent.
Run your code to see results.