new Alogrithm of p1_8

do the comparison of a+a with b, also we can use the contains method in
the java String class.