Tripadvisor interview question

wildcard matching