Given two strings a and b, determine the minimum number of times string a must be repeated so that string b becomes a substring of the repeated string.
If it is impossible for b to be a substring of the repeated string a, return -1.
Your notes are automatically saved in your browser's local storage and will persist across sessions on this device.