Last Updated: 17 Feb, 2017

Amazing Strings

Easy
Asked in companies
Urban Company (UrbanClap)AmazonAvalara

Problem statement

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