text: class Solution {
  public:
      vector<int> sortedSquares(vector<int>& A) {
          vector<int> ans;
          for(int i : A)
              ans.push_back(i*i);
          sort(ans.begin(), ans.end());
          return ans;
      }
  };