Question from the Java and Craftsmanship test

Write a function that returns the first character of a string in Java