HARMAN interview question

Java coding using streams and database operations