Company: Amazon_16feb
Difficulty: medium
Clean String You are given two strings A and B . Return the leftover string in A after removing every letter that occurs anywhere in B . A single letter in B removes all of its occurrences in A , and the surviving letters keep their original relative order. If nothing survives, return the word Empty . Input Format A single line holding two space-separated tokens: the string A , then the string B . A B Output Format A single line. Print the leftover string, or exactly Empty (capital E , the rest lower case) when no character of A survives. The output is never blank. Example 1 Input AABBCC AB Output CC Explanation Here A is "AABBCC" and B is "AB". Removing every 'A' leaves "BBCC"; removing every 'B' leaves "CC", so the output is "CC". Additional Examples A B Output AABBCC AB CC ABC ABC Empty HELLO XYZ HELLO AAAAAA A Empty BANANA A BNN COMPUTER MOUSE CPTR Constraints 1 <= |A| <= 15000 1 <= |B| <= 15000 A and B consist only of upper-case English letters A - Z . Both are non-emp