Arista Networks interview question

Compare two version strings. Design a stack API. Write palindrome function.