refactor
Refactored Longest Valid Parentheses
Fixed a bug that might invoke undefined behavior

Calling front() on an empty container would invoke undefined behavior
Merge pull request #7 from JasonGitHub/master

refactor