Pregunta de entrevista de Cisco

Wrote a code for connect device without using inbuilt methods?