ServiceNow interview question

To solve a Java Specific problem