Buscador de frases

Crie uma função que retorne a primeira frase completa que contenha uma palavra específica. Inclua o ponto final no fim da frase.

Exemplos

final String str1 = "For the love of Tesh. She is the love of my life. I am all hers.";
final String str2 = "I have a cat. I have a mat. Things are going swell.";

sentenceSearcher(str1, "LOVE") ➞ "For the love of Tesh."

sentenceSearcher(str1, "LIFE") ➞ "She is the love of my life."

sentenceSearcher(str1, "hers") ➞ "I am all hers."

sentenceSearcher(str2, "MAT") ➞ "I have a mat."

sentenceSearcher(str2, "things") ➞ "Things are going swell."

sentenceSearcher(str2, "flat") ➞ ""

Notas

  • As frases sempre terminarão com um ponto.
  • Sua função não deve diferenciar maiúsculas de minúsculas.
  • Retorne uma string vazia se a palavra não for encontrada na frase.