Socommerz interview question

how will you Reverse a string? Angular Core Concepts