-1

I am trying to solve the following problem:
Given three numbers, a, b, and c, return their product, but if one of the numbers is the same as another, it does not count. If two numbers are similar, return the lonely number. If all numbers are same, return 1.
I have the following solution:
d...