Pergunta de entrevista da empresa Capital One

The technical interview had me write code in java for whether a word was a palindrome and then whether parentheses were balanced.