Wipro interview question

Java out of memory