Solve "Search for a Range"
2 logN lowerBound and upperBound