

If N = 50, then output will be 32.
If N = -50, then output will be FFFFFFCE.
The first line of input contains an integer ‘T’ denoting the number of test cases.
Then the T test cases follow.
Each test case contains an integer N.
For each test case, return the corresponding Hexadecimal format of the given decimal (integer) number N.
You are not required to print anything; it has already been taken care of. Just implement the given function.
1 <= T <= 5
-10^4 <= N <= 10^4
Time Limit: 1 sec
The base value of the Hexadecimal number system is 16.