Company: GLIDER

Difficulty: medium

Problem Statement

It is your little brother Louie's birthday in a few days. So, you decided to buy a magnetic letterbox for him as a present. Louie wants to construct two strings using all the letters in the box. You must determine whether he can construct both strings using all the letters in the box. Input The first and the second line of the input contain two strings S 1 and S 2 , representing the strings that Louie wants to construct. The third line of the input contains string R - representing all the letters in the magnetic letters box. Note: Strings only contain uppercase Latin letters. Output Print "Yes" if Louie can construct given strings using all the letters in the box. Otherwise, print "No". Print the answer without the quotes. Constraints 1 ≤ length of S 1 , S 2 , R ≤ 100 Example #1 Input SAM JOHN

More GLIDER OA questionsInterview experiences