Find First and Last Position - Read Statement

Given a sorted array of integers and a target, find the starting and ending position of the target. If the target is not found, return [-1, -1].

You must write an algorithm with O(logn)O(\log n) runtime.

Example: For [5,7,7,8,8,10] and target 88, return [3, 4]. You need both lower bound and upper bound.