Broadcom Interview Question

How can u change Malloc block with changing return type ?