Wrong test case for String 1


#1

for input 1 expected output is 0 but 1 is 2 power(0).


#2

I’m with you on the first understanding, however the question said k >= 1(didn’t mention must be integer though). I reckon it should change to k >= 0 and must be integer (imagine k=-1, and the input string A = “0.5”)