For this task, you will be required to find a set of simple statistics based on a given set of data. Data will be provided as an array of integers, and you will be tasked with finding the mean, median, mode, and range of the data.
The first line will contain $$$n$$$, the number of values in the array. The second line will contain space-separated integers that correspond to the array of input values.
The output should print the mean, median, mode, and range of the provided data in order and separated by lines(ie. the first line has the mean, the second line has the median, etc).
5 2 2 8 1 5
3.6 2.0 2 7