Adobe interview question

Q: How does the Bresenham line drawing algorithm work?