結果 : write ac function to compare two strings