Cognizant Interview Question

Basic from pyspark and sql