Genuine question, does this strike others as immensely off-topic? I'm curious if the parent commenter even opened the link. I'm sure there are applications of generalized knapsack problems (or dynamic programming generally) in options trading, but this isn't it.
If you check their profile you can see they created their account 4 months ago, so they are likely to be new here. No need to be disagreeable to make your point.