Yugabyte Interview Question

coding - DP + arrays strings + pattern matching