Censor Dispenser Challenge(email_four)

Continuing the discussion from Censor Dispenser Challenge Project (Python):

Hi, there! This is my version of the solution on this challenge.