Microsoft interview question

Determine whether parentheses are properly matched on a string.

Interview Answer

Anonymous

11 Aug 2016

Regex.Match(@"^(\().*(\))$");