Meraki interview question

Write a function void * amalloc(size_t size, size_t align) that uses the stdlib's malloc function but returns a pointer that is aligned at align bytes. Similarly implement afree() that frees that pointer.