AST SpaceMobile Interview Question

Javascript code to reverse a string