Cisco interview question

House robber - dynamic programming Comparing characters in a string