Cisco Interview Question

Given an array of ints calculate the mean and mode