Hexaware Technologies Interview Question

how would you solve memory issues in application?