Removendo caracteres de uma frase

Published by Matt in

Crie uma função que receba uma frase str e uma string de caracteres chars e retorne a frase com todos os caracteres especificados removidos.

Exemplos

stripSentence("the quick brown fox jumps over the lazy dog", "aeiou") ➞ "th qck brwn fx jmps vr th lzy dg"

stripSentence("the hissing snakes sinisterly slither across the rustling leaves", "s") ➞ "the hiing nake initerly lither acro the rutling leave"

stripSentence("gone, reduced to atoms", "go, muscat nerd") ➞ ""

Observações

  • Pode ser necessário remover pontuação e espaços.
  • Retorne uma string vazia se todos os caracteres forem especificados (veja o exemplo n.º 3).
  • Todos os testes estarão em letras minúsculas.