Robinhood Interview Question

Simple string matching question using regex