NVIDIA Interview Question

open closed principle in oops