Allocate memory in WebAssembly’s linear memory and return its offset
Call the specified solution method with the given input
Deallocate memory in WebAssembly’s linear memory at the offset located at ptr
ptr