Code for problem "Word Break".