Philips interview question

Explain how an x-ray machine works?