Xerox Interview Question

Question from core java and SQL