WishFin Interview Question

Q1: Reverse a given string