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