nums is sorted ascending. Return the index of target, or -1 if it is not present.
Patterns: binary-search. Difficulty: easy.
Open in Dryrun