Optiver interview question

String, HashMap, DP questions, can use most languages.