Census interview question

Describe algorithm in the discussion part and create RegEx engine for 45 min coding challenge