Techblue Software interview question

question based on java, threads, and from java 8