Socommerz Interview Question

how will you Reverse a string? Angular Core Concepts