Karius Interview Question

Balanced bracket problem with {}, [] and ().