/* Get the index of the element that does NOT equals to Array. */
UINT32 GetNextDifferentElementInSortedArray(IN UINT32 Index, IN UINT64 *Array, IN UINT32 Count)
/* Get the index of the element that does NOT equals to Array. */
UINT32 GetNextDifferentElementInSortedArray(IN UINT32 Index, IN UINT64 *Array, IN UINT32 Count)
{
  UINT64  CurrentElement;
  CurrentElement = Array[Index];
  while (CurrentElement == Array[Index] && Index < Count) {
    Index++;
  }
  return Index;
}