Traact interview question

design an trading graph interface without any library using