OpenAI interview question

OA has dynamic programming problems.