My issue
please tell me where i went wrong
My code
# cook your dish here
import math
t = int(input())
for i in range(t):
a,b = map(int, input().split())
count = 0
while True:
if b%a==0 or a%b==0:
if a>b:
print(int(math.log((a//b), 2)) + count)
else:
print(int(math.log((b//a), 2)) + count)
break
else:
a = a//2
count=count+1
Problem Link: CodeChef: Practical coding for everyone