Revel (NY) interview question

Basic string parsing essentially, very easy.