Twin Health interview question

Spark and python related problem solving.