solved string1 and string2 problem sets