Thomson Reuters interview question

Star patterns and some basic programs. like reverse a string and factorial and Fibonacci series programs