UKG interview question

Java , Stream API , multi threading