Stack memory and heap memory simulation

Complete and Continue