added solution for hw2 problem 1b. use sameString in hw2 problem 1a