IBM interview question

Write a function to compare two strings and determine if they're the same.