WD Interview Question

How Stack grows and what are the criteria for stack growth? How to calculate the stack usage in our program?