Leetcode 3365. Rearrange K Substrings to Form Target String | Hello Interview