Broadcom interview question

How can u change Malloc block with changing return type ?