I'm reminded of this jane street puzzle https://news.ycombinator.com/item?id=47146487