Update scramble string

three dimension dynamic programming