BMW Car IT interview question

Malloc implementation