Capital One interview question

String manipulation, permutations and dynamic programming on coding test. Phone interview was shaky as the interview didn't seem to have even read my file, preferences etc.