Total Number Of Occurrences In Sorted Array Leetcode