The following is my python code to find the number of iterations needed to generate random string iteratively to match the input string.
Here I have repeated a similar ki