Pregunta de entrevista de Amazon

How to efficiently compare a strings