Pregunta de entrevista de Citi

How do you write a program to compare two strings?