LTM Limited Interview Question

Write a code in pyspark?