Pergunta de entrevista da empresa NVIDIA

typical ice breakers like volatile, static etc. question about compiler optimization. what happens if compiler can't store variable in a register ? then gave me a code snippet to find bug. was an array out of bounds access in a for loop. then in last 10 mins or so, asked me to write malloc and free for a fixed buffer array and return offset to user.