Slash Interview Question

Resolve the syntax errors in this brace-closure parser