Update longestPalSubs.cpp