Cisco Interview Question

One of the questions was Word Break problem