Indeed Interview Question

find a pattern that matches in string.