Yesterday I came across the “Squared of a Sorted Array” problem on Leetcode. The problem was “Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.”