Cisco interview question

implement malloc func that get an integer and return the malloc allocated address value aligned to that number