105. Positions of the Min and Max

Easy

Return a length-2 tensor [i_min, i_max] holding the indices (not values) of the minimum and maximum elements of 1-D tensor x.

Implement solve(...)