For two given positive numbers a and b. Find a^b. Output your number modulus 10^9+7.
The first line contains an integer 'T' denoting the total number of test cases. In each test cases, there are two numbers a and b.
1 <= T <= 31
1 <= a <= 100
1 <= b <= 1000000
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.