19. Cartesian to Polar

Medium

Z is an (n, 2) tensor of (x, y) coordinates. Return an (n, 2) tensor of (R, T) where R = sqrt(x²+y²), T = atan2(y, x).

Implement solve(...)