Hero Engine Interview Question

Code a string compare function without using any helper libraries.