Coding Challenge #20!

Coding Challenge Series / Technical Interview Series

Write a function to return a specified number of words from a string (as a new string), up to a maximum of specified characters total.

Your function is passed the original string, the number of words to return, and the maximum number of characters allowed.

Make sure that you consider unusual strings, delimiters, etc.