Google interview question

Check if string a has prefix string b