Pregunta de entrevista de EPAM Systems

Python code using loop of medium difficulty Pyspark code