searchRange = function(nums, target) {
    
    const result = [];

    result.push(binarySearch(true, nums, target));
    result.push(binarySearch(false, nums, target));

    return result;
}
Binary Search
https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
Time O(log(n)) | Space O(1)
@param {number[]} nums
@param {number} target
@return {number[]}