Leetcode 3291. Minimum Number of Valid Strings to Form Target I | Hello Interview