title: Number Indexes Equal Elements Given Range
signature: function numberIndexesEqualElementsGivenRange(a, n, l, r) {
source_py: def number_indexes_equal_elements_given_range(a, n, l, r):
      count = 0
      for i in range(l, r):
          if (a[i] == a[(i + 1)]):
              count += 1
      return count
source_cpp: int number_indexes_equal_elements_given_range(vector<int> a, int n, int l, int r) {
    int count = 0;
    for ( int i = l;
    i < r;
    i ++ ) if ( a [ i ] == a [ i + 1 ] ) count += 1;
    return count;
  }