I need to count time complexity of this program. The program counts number of occurrences in a sorted array. Code is in JS. I need three steeps to this task: