Check If Two Expressions Are Same

Given two expressions in the form of strings, the task is to compare them and check if they are the same. Expressions consist of lowercase alphabets, '+', ‘'-' and '( )'.

Examples:

"-(a+b+c)"and "-a-b-c" are the same, therefore the output should be "Yes". Output: Yes

"a-b-(c-d)" and "a-b-c-d"are not the same, therefore the output should be "No".

Contributed by Berkan Teber