**Objective:** Given a sorted(ascending order) arrays of integers, find out the number of occurences of a number in that array

**Input:** A sorted array arrA[] and a number x.

**Output: **number of occurrences of ‘x’ in array arrA[].

**Examples** :

Array - {1,2,2,2,2,2,2,2,3,4,5,5,6} x = 2 Output : No of Occurrences of number 2 is 7

**Approach: **