Oracle Interview Question

Regex matching (leetcode)