Problem

Most frequent value in length-3 array (unique mode).

Examples

  • modeOfThree([1, 2, 2]) -> 2
Compile and test (Ctrl+Enter)