# Next to the middle Given an array of integers, find *"the next to the middle"*. The next to the middle is the smallest integer greater than the smallest among mean, median and mode of the given numbers, that is neither the mean, median or mode and is also contained in the array. For example, in the following array ``` [ 7, 5, 2, 8, 0, 2, 9, 3, 5, 1, 2 ] Mean: 4 Median: 3 Mode: 2 ``` The next to the middle is `5`, because: * It's greater than 2 (the smallest of the three) * It is not any of the mean, median, mode * It's present in the input array * It's the smallest number matching the above requirements Another example, given this array ``` [ 2, 5, 1, 11, 0, 2, 12, 5, 1, 0, 5 ] Mean: 4 Median: 2 Mode: 5 ``` The next to the middle is `11`. ## Input An array containing a sequence of integers. * The mean could be a floating point number and that's just fine. * If the number of elements in the input array is even, you need to handle 2 medians. * If more than one integer occurs with the highest frequency, you need to handle multiple values for the mode. ## Output The *next to the middle*. If such number doesn't exist you can output either `3.14`, an empty string or any other value that can't be mistaken for an element of the array (be consistent with this value throughout your program) This is [tag:code-golf], the shortest wins. # Meta * Is this clear enough? * Which tags should I use? * Any suggestion to improve the challenge? I will add test cases after I make a program, lol.