Add solution for problem 4: length.
Add solution to problem 5: reverse.
Add solution to problem 6: isPalindrome.