Quantiphi Interview Question

completely technical pyspark,sql,python code moreover i cleared r1 nd r2