Cruise interview question

write malloc and free with memory alignment