[Functional Programming Monad] Refactor Stateful Code To Use A State Monad

NoSuchKey