Find The Difference

easy
1. You are given a Strings S and T. 2. T is formed by random shuffling of characters of S and adding one more character at random position in the string. 3. You have to find the character that was added to T. 4. main takes input Strings S and T from the users. 5. This is a functional problem. 6. You have to complete the findTheDifference function. It takes as input the String S and String T. It should return the character that is added to T. 7. Don't change the code of main.

Input Format

First line takes input S. Second line takes input T. Input is handled for you.

Output Format

The different character. Output is handled for you.

Constraints

N/A

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
abcd 
edcba
Output
e
Previous
Find Pairs With Given Relation
Next
Find The Most Frequent Digit

Related Questions