13. You are given a string. You have to print
“Wonder” if the string is wonderful and -1 if it is not. A wonderful
string is a string,which is made up of exactly 3 different characters.
Input Description:
You are given a string
You are given a string
Output Description:
Print “Wonder” if it is wonderful and -1 if it is not
Print “Wonder” if it is wonderful and -1 if it is not
Sample Input : aabbcc
Sample Output : Wonder
16.You are given with a string which comprises of some numbers. Your task is to find the largest integer by converting the string to the corresponding integer.
Sample Input : I was born on 12 october 1998.
Sample Output : 1998
Comments
Post a Comment