Help me in solving CANDY123 problem

My issue

include <stdio.h>

int main(void) {
// your code goes here
int t,a,b,sum1=0,sum2=0,i;
scanf(“%d”,&t);
while(t–){
scanf(“%d %d”,&a,&b);
i=0;
sum1=0;
sum2=0;
while(1){
i++;
sum1+=i;
if(sum1>a) { printf(“bob\n”); break;}
i++;
sum2+=i;
if(sum2>b){ printf(“limak\n”); break;}
}
}

}

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int t,a,b,sum1=0,sum2=0,i;
	scanf("%d",&t);
	while(t--){
	    scanf("%d %d",&a,&b);
	    i=0;
	    sum1=0;
	    sum2=0;
	    while(1){
	        i++;
	        sum1+=i;
	        if(sum1>a) {  printf("bob\n");   break;}
	        i++;
	        sum2+=i;
	        if(sum2>b){   printf("limak\n");  break;}
	    }
	}

}

Problem Link: Bear and Candies 123 Practice Coding Problem

@eswari15
U have to print bob and limak as it is given in the question like bob should go like Bob.