Domanda di colloquio di Barclays

How to draw line and circle without using any function.