Electronic Arts interview question

The most difficult question was writing a program that matched brackets using a stack.