Traact Interview Question

design an trading graph interface without any library using