Solving that code test in a more effective manner? :)
replace non alpha/spaces, lowercase it, then compare value.reverse() == value
replace non alpha/spaces, lowercase it, then compare value.reverse() == value
string.reverse() and string.equals() is plenty good enough for smaller magnitudes or all-new functionality. Premature optimization just means you think you can outguess the profiler.
So first you code the simplest thing that works. Then you start optimizing in the most heavily used sections. If you have to go past the pointer-based solution in C to assembly that employs hardware-specific performance tweaks, it's time to just end the interview and go pet your taco cat.