Leetcode Check A String For A Suffix And Affix