A multi-part command-parsing OA problem simulating a payment system. You are given a sequence of commands that must be parsed and executed to maintain merchant state and payment records. - Part 1: Implement merchant balance tracking and payment creation. Commands include INIT (initialize a merchant with a starting balance) and…