In this kata, your job is to return the two distinct highest values in a list. If there're less than 2 unique values, return as many of them, as possible.
The result should also be ordered from highest to lowest.
Examples:
[4, 10, 10, 9] => [10, 9]
[1, 1, 1] => [1]
[] => []
def two_highest(list)
list.uniq.sort.reverse[0..1]
end
def two_highest list
list.uniq.max 2
end