Nokia interview question

How to draw a line? Code.