nums sorted in non-decreasing order, return a new array holding the square of every element, arranged in non-decreasing order. Solve it in O(n) time.nums sorted in non-decreasing order, return a new array holding the square of every element, arranged in non-decreasing order. Solve it in O(n) time.// Run your code to see the output here.