In the sample input /output
3,4,5 the outputs is 2 ,1 ,2
we have to findout the min steps to reach the above no in terms of power of 2
for 3 , 2 steps is need as 2^1 = 2
for 4, 2 steps is need as 2^1 = 2 min
for 5 , 3 steps is need as 2^2 = 4 min is need
so the output will 2,2,3 but the output is 2,1,2