Given a non-decreasing integer array nums and a target, return the first and last index of target. If it is absent, return -1 -1. Must run in O(log n).
Input
targetOutput: two indices, space-separated.
5 7 7 8 8 10 8
3 4
5 7 7 8 8 10 6
-1 -1
Run your code against the sample tests, or Submit to run the full suite.