ICU Medical Interview Question

How would you convert a string to an int? How do you determine a string is a palindrome?