Cognizant Interview Question

Java 8 Coding, Sql queries,