Python 3 -- Short Simple solution
\nclass Solution:\n    def getMaxRepetitions(self, s1: str, n1: int, s2: str, n2: int) -> int:\n        dp = []\n        for i in range(len(s2)):\n            s
```\nclass Solution:\n    def getMaxRepetitions(self, s1: str, n1: int, s2: str, n2: int) -> int:\n        dp = []\n        for i in range(len(s2)):\n            start = i\n            cnt = 0\n            for j in range(len(s1)):\n                if s1[j] == s2[start]:\n                    start += 1\n                    if start == len(s2):\n                        start = 0\n                        cnt += 1\n            dp.append((start,cnt))\n        res = 0\n        next = 0\n        for _ in range(n1):\n            res += dp[next][1]\n            next = dp[next][0]\n        return res // n2\n\t\t\n```
['Python', 'Python3']