NVIDIA interview question

Writing a custom malloc that needs to be aligned to some size.