first solution
Our final solution to finding the mode