Added exercise 7: Determine if a string is an acceptable sequence by either returning true or false.