Accenture interview question

What is the difference between cluster mode and client mode in spark