Pergunta de entrevista da empresa Barclays

How to draw line and circle without using any function.