give integer array num sort nondecrease order return array square number sort nondecrease order Example 1input num 410310output 01916100explanation after square array 16109100after sort 01916100example 2input num 732311output 49949121 Constraints1 numslength 104104 numsi 104nums sort nondecrease order Follow squaring element sort new array trivial find on solution different approach