Frage im Vorstellungsgespräch bei Toast Inc

JavaScript function to reverse a string and check if it's a palindrome.