Pergunta de entrevista da empresa J.P. Morgan

What is an interface and why is it used?