Example 1
mostFrequentValue()Input
nums = [1, 5, 2, 5, 3, 2, 5, 4, 2, 2, 3, 1, 1, 1, 1, 1, 5, 2, 2, 4, 4, 3, 4, 2, 3, 3, 3, 4, 4, 3, 2, 4, 3, 1, 5, 1, 4, 1, 2, 2, 2, 1, 4, 2, 1]Output
2Why
`mostFrequentValue` returns `2` for this input.Problem 415 of 1146 in the arena