10. Regular Expression Matching Solution