Sort by squares and find k-th smallest | Uber