Cognizant Interview Question

Free a memory using realloc.