Optum interview question

Q. Difference between compiler and interpreter