ASCENTech interview question

Explain Stream API with technical ex. Like sorting a employee using their salary.