algorithm : find max duplicate sub str among two strs