solve exercise 2.54, equal? method for symbol list
answer for exercise 2.54