Implement solve(sorted, target) that searches for target in a sorted(ascending) array using binary search and returns its index, or -1 if notfound.
solve(sorted, target)
target
-1
Constraints
.indexOf
.find
Sample tests