Microsoft Interview Question

I was asked about how to retrieve memory used in the program.