Prodevans interview question

Difference between compiler and interpreter