EY interview question

Java stream api and database related qs.