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