Task The first line of the input will give the number of test cases, T. In each test case, a string S is given. You have to find string p of minimum length such that there exists a positive integer k for which p*k=S. Sample Input 5 ABAB ABABABABAB ASDA ASAASA B Sample Output ABRead more