ServiceNow interview question

String word reverse program and Fibonacci series program.