GammaStack Interview Question

Reverse the string and star patterns