30. n Largest Values

Medium

Return the n largest values of tensor Z, sorted ascending.

Implement solve(...)