Ravity Interview Question

Explain the whole asiignment given. Very basic Data Science Questions