Crank Software interview question

Homework assignment: code an algorithm to draw an antialiased line