DBS Bank interview question

In Java 8, how does the stream works under the hood?