Allegion Interview Question

1. Write algorithm for reverse a string