Blue Yonder interview question

Java codes and all basic concepts.