Where should we start? Let’s start with the reinforcement learning (RL) problem. Here is slightly higher-level…