You have been given an alphanumeric string S, extract maximum numeric value from that string. Alphabets will only be in lower case.
The first line contains a single integer T i.e. the number of test cases. T testcases follow. The first and only line consists of a String S.
For each testcase, in a new line, print the Maximum number extracted from the string S.
1 <= T <= 100
2 <= |S| <= 200
Test Case 1: The maximum number found in the string is "564".
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.