Handles cases where (= a b c), but not where (= a (> b c)). Thus this solution assumes the numbers are either all unequal or all equal.