1. Find All Distinct Elements

In this example, we have list of strings and we will find all distinct strings, collect them into another list using collect() which is java stream terminal operations. After collecting the distinct elements, we will verify it by printing them to console.