Given a word with no spaces, determine the location of the ? in the word and then create and return a new String that does not contain a ?.
Part A – Write method findQuestionMark that will return the index position of the ? in the parameter word. All words with have at most one ?
The call findQuestionMark("dog?cat") would return 3.
The call findQuestionMark("?bigbird") would return 0.
The call findQuestionMark("squarepumpkin?") would return 13.
The call findQuestionMark("porkypig") would return -1.
The call findQuestionMark("f?atcatsonthemat") would return 1.
public static int findQuestionMark( String word )