Predict a label by majority vote over the labels of the demonstrations in a prompt. If several labels tie, the smallest label wins.
Implement solve(labels).
Returns. Return the winning label.
Example 1
Input:
solve([0, 1, 1, 0, 1])
Output:
1
Example 2
Input:
solve([2, 3, 3, 2])
Output:
2
No results yet
Run your code to check it against the examples, or submit to run every test.