Yahoo Interview Question

Regular expression question