Pergunta de entrevista da empresa Cisco

One of the questions was Word Break problem