Implement a rule parser/engine that evaluates a list of decision rules against input transaction data to determine whether a transaction should be ACCEPTED or BLOCKED. Part 1 (Simple keyword rules): Given a list of rules of the form 'BLOCK if <keyword>' or 'ACCEPT if <keyword>' (e.g., 'BLOCK if fraud_flag', 'ACCEPT…