Capital One Interview Question

Given a string, determine if its a palindrome. Use any language

Interview Answer

Anonymous

Jan 3, 2018

public boolean isPalindrom(String text) { StringBuffer stringBuffer = new StringBuffer(text); return stringBuffer.reverse().toString().equals(text); } There are many ways to solve this question.