example code
function that, given a zero-indexed array A, consisting of N integers, returns the value (or one of the values) that occurs most often in this array. For example, given array A such that:
A[0]=20 A[1]=10 A[2]=30 A[3]=30 A[4]=40 A[5]=10
the function may return 10 or 30.