Intel Corporation interview question

How does an IR spectrometer work?