Sobes.tech
Middle

Given a sorted array of numbers, return a sorted array of their squares. Example: Input: nums = [0, 1, 1, 6, 12, 20] Output: squares = [0, 1, 1, 36, 144, 400]