Impetus Technologies Interview Question

How to update records in spark table, Find second highest Array item, Spark architecture