Solve: Green Ticket
Imported By: Geoffrey Challen
/ Version: 2021.6.0
You have a green lottery ticket with three numbers.
If the numbers are all different from each other, the result is 0.
If all of the numbers are the same, the result is 20.
If two of the numbers are the same, the result is 10.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.fun greenTicket(
first: Int,
second: Int,
third: Int,
): Int {
return 0
}