J.P. Morgan Interview Question

What is an interface and why is it used?