Amazing Strings
Given 3 Strings, check whether the 3rd string contains all the characters of string 1 and 2 in any order. If all the characters are present, print "YES" otherwise print "NO".
There should not be any extra character and any missing character.
The string s contains uppercase Latin letters only.
Input format :
Line 1 : First String
Line 2 : Second String
Line 3 : Third String
Output format :
YES or NO
Constraints :
1 <= n (Length of 1st & 2nd Strings) <= 100
Be the first one to answer
Add answer anonymously...
Top Amazon Software Developer Intern interview questions & answers
Popular interview questions of Software Developer Intern
Top HR questions asked in Amazon Software Developer Intern
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app