Pergunta de entrevista da empresa American Airlines

Check the occurrence of a letter in the given string.