The mode of a list of values is the value having the greatest frequency.
a. Write an algorithm to find the mode of a sorted list using only methods of the ADT sorted list.
b. What is the Big Oh of the algorithm if the sorted list has an array-based implementation?
c. What is the Big Oh of the algorithm if the sorted list has a linked implementation?