What i did is just brute force and find palidromes but it is wrong on test case itself ,

```
def ispali(s):
r = s[::-1]
return (r==s)
cnt=0
st , en = map(int,input().split(' '))
for i in range(st,en+1):
s1 = str(i)
for hr in range(0,24):
s2 = (2-len(str(hr)))*'0' + str(hr)
for mini in range(0,60):
s3 = (2-len(str(mini)))*'0' + str(mini)
for sec in range(0,60):
s4 = (2-len(str(sec)))*'0' + str(sec)
if(ispali(s1+s2+s3+s4)):
cnt+=1
print(cnt)
#approach 2
cnt=0
for i in range(st,en+1):
for j in range(0,86400):
x = j
hr = x//3600
x = x%3600
mini = x//60
x = x%60
sec = x%60
s2 = (2-len(str(hr)))*'0' + str(hr)
s3 = (2-len(str(mini)))*'0' + str(mini)
s4 = (2-len(str(sec)))*'0' + str(sec)
if(ispali(str(i) + s2+s3+s4)):
cnt+=1
print(cnt)
#both give same answer for
# 1 2
# 288
```

Help anyone @everule1 @spaanse @galencolin @aryan12 @ay2306