Junior — Senior
Square of elements of the sorted array
livecode
Task condition
There is an array of integers, already sorted in ascending order. It is necessary to traverse the array once, square each element, and preserve the original order of elements in the array.