poj1226. string. reverse. kmp