Pregunta de entrevista de Barclays

How to draw line and circle without using any function.