Erc20 contract with specific function burn

Hello, Would anyone have an example of a contract that if you send them token SPC automatically execute the Burn function of the Token? I wish I could send token to the contract via a call. These token are SPCs. The contract calls the SPC Burn function to remove them from the supply. The contract makes a purchase of SPC on the USDC / QUICKSWAP SPC contract with all the USDCs sent. The contract calls the SPC Burn function to remove them from the supply. Thank you for helping me in this little exercise. :pray: