MathWorks Interview Question

1) Remove Invalid Parantheses 2) Reverse Linked List in k-groups