Four-digit palindromes start with `[1001,1111,1221,1331,1441,1551,1551,...]` and the number at position `2` is `1111`.  
You will be given two numbers `a` and `b`. Your task is to return the `a-digit` palindrome at position `b` if the palindromes were arranged in increasing order. 
Therefore, `palin(4,2) = 1111`, because that is the second element of the `4-digit` palindrome series.
More examples in the test cases. Good luck!
If you like palindrome Katas, please try:
[Palindrome integer composition](https://www.codewars.com/kata/599b1a4a3c5292b4cc0000d5)
[Life without primes](https://www.codewars.com/kata/59f8750ac374cba8f0000033)
from math import ceil
def palin(a,b):
    c=ceil(a/2)
    for i in range(10**(c-1),10**c):
        p=str(i);p+=p[::-1][a%2:]
        if b==1:return int(p)
        else:b-=1
from math import ceil
def palin(a,b):
    c=ceil(a/2)
    for i in range(10**(c-1),10**c):
        p=str(i);p+=p[::-1][a%2:]
        if b==1:return int(p)
        else:b-=1