Hexaware Technologies interview question

how would you solve memory issues in application?