Infogain Interview Question

User defined function in PySpark.