Nagarro Interview Question

how to handle memory leak issues