MAERSK interview question

List sorting in Java and lambda functions