NVIDIA Interview Question

Round 1 : c++ concepts. Evaluate ternary tree using oops concepts like inheritance and polymorphism