Amazon Interview Question

They asked my to write some sort of regular expression that would fit a given pattern