Invert number signs
Given a List of values, invert the sign of every values. 5 becomes -5, -10 becomes 10.
Sample Code:
def signInvert(arr):
# Enter your logic here...
Examples:
Input: [-1,2,-3,4,-5]
Output: [1,-2,3,-4,5]
Explanation: -1 becomes 1, negative numbers become positive, and so on.
Input: ['-1',2,'-3',4,'-5']
Output: [1,-2,3,-4,5]
Explanation: 2 becomes -2, positive numbers become negative numbers, and so on.