You are given a list nums of integers.
Return a new list in which each number has been squared, and the resulting values appear in reverse order relative to the input.
For example, for [1, 2, 3] the squares are [1, 4, 9], and reversed that is [9, 4, 1].
NOTE: This is a function-type question — you only write the function. Do not read input or print anything; a hidden checker calls your function and checks its return value.
Arguments
[1, 2, 3]
Returns
[9, 4, 1]