Infogain interview question

User defined function in PySpark.