Can someone please help me find out what is wrong with my code

I am unable to find what is wrong with my code although most of the other solutions have the same logic. Here is my submission. Submission #109569043 - Codeforces

while(start<end)
            {
                if(s.charAt(start)!=s.charAt(end))
                {
                    pal=false;
                    break;
                }
                start++;
                end--;
            }

This is wrong. You have to check only till start<k

Can you please explain why is that??