Pregunta de entrevista de Amazon

How to do various things with regex.