Impulse Space Interview Question

How does a thermocouple work?