Time Complexity In Sorted Array Leetcode