Bright Data Interview Question

1.check if input is polindrome 2.simplify code