int Solution::solve(int A) {
if(A%2==1){
return 0;
}
int cnt=0;
while(A%2==0){
A=A/2;
cnt++;
}
return cnt;
}
`indent preformatted text by 4 spaces`
int Solution::solve(int A) {
if(A%2==1){
return 0;
}
int cnt=0;
while(A%2==0){
A=A/2;
cnt++;
}
return cnt;
}
`indent preformatted text by 4 spaces`