Capgemini interview question

Find the duplicate element from a list in Java 8