X33: zipZap

Given a string str, find all places where a three-letter combination starting with "z" and ending with "p" occurs. Return a string where for all such three-letter sequences, the middle letter has been removed. For example, a string like "zipXzap" would produce a result of "zpXzp".

Your Answer:

Feedback

Your feedback will appear here when you check your answer.