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 `'( )'`

.

`"-(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"`

.

You are not signed in. You can only run/submit code after signing in. Create your free Codela account now!