Vision World Tech interview question

How does the ADC on ATMega328 work.