Amazon Interview Question

Simple programming questions that I can't quite remember. Balanced parenthesis were on it.