Exercise

Write a function that will determine the MODE of a given integer array. The mode is the value that appears the most in the data set. If there is more than one MODE, return any one of the multiple MODES.

Advanced (Bonus Points): Have the function create a dynamic list which will contain the MODE/MODES (in case multiple MODES are found).