AST SpaceMobile interview question

Javascript code to reverse a string