Cognizant Interview Question

difference between compiler and interpreter