Layer the broccoli, cauliflower, Cheddar cheese, bacon, and egg in a bowl. Mix together the mayonnaise, vinegar, and sugar. Ladle over the salad and serve.