You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take as input a string. This string is a mixture of letters, integers and special char. From this string, find the largest even number that can pe possibly formed after removing the duplicates.
If an even is not formed then return -1.
Example Input
infosys@337
Output
-1
"""
s = input()
n = sorted(list(set(filter(lambda x:x.isdigit(),s))),reverse=True)