1. You will be given a string str
2. You will also be given an integer k
3. You need to check if it is possible to modify str, such that its a repeatitive sequence of k characters by replacing exactly k characters ONLY once
4. Return true if possible, otherwise false
4. Input is handled for you
5. It is a functional problem ,please do not modify main()
Input Format
Input is handled for you.
Output Format
Output is handled for you
Constraints
1< |Length of string| <=100 1<=k<=10
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
aabaabaabcdeaab 3
Output
1