Tavant interview question

Python code, Spark concept, Spark code