Reinforcement Learning (RL) is a subfield of machine learning that focuses on how an agent can learn to make decisions and take actions in an environment in order to maximize a cumulative reward signal. RL is inspired by the concept of…