Hero Engine interview question

Code a string compare function without using any helper libraries.