Pergunta de entrevista da empresa Spotify

Verify programming syntax of function calls. Such as foo() being valid but )foo() not being valid.