Return the most frequent (mode) value in the non-negative integer tensor Z. If multiple values are tied for most frequent, return the smallest one.
Z
solve(...)