Interland Interview Question

Programs to print star pattern and to reverse a string