Pergunta de entrevista da empresa Hero Engine

Code a string compare function without using any helper libraries.