Glitch interview question

One simple Geometry problem and a coding question to check if a String is Palindrome or not.