SpanIdea Interview Question

String reverse function