Amazon interview question

How to efficiently compare a strings