Tesla Interview Question

Write a memory pool in C++ that allocates n blocks of k size on stack.