Blue Yonder interview question

Asked on SQL, java