I had recently participated in coding competion sponsored by an company and there was this one question which I did not understood, as to what was it asking.
Here i
Calculating the minimum square is quite easy. you can just check the no of characters in input string and the minimum square size n*n.
1*1= 1 2*2 = 4 3*3 = 9
so you can easily find the n by putting in formula
n*n >= length(input string).