Citadel Securities Interview Question

2 dynamic programming hackerank questions