secondModes function

Most common and second most common values