• + 0 comments

    As you sorted the entire array,the first value encountered while calculating the mode is the smallest value.