Cognizant interview question

Basic from pyspark and sql