What is the depth of Node G in the given ternary tree?

(a) 0

(b) 1

(c) 2

(d) 3

The origin of the question is Ternary tree topic in chapter Trees of Data Structures & Algorithms I

I got this question in quiz.

What is the depth of Node G in the given ternary tree?

(a) 0

(b) 1

(c) 2

(d) 3

The origin of the question is Ternary tree topic in chapter Trees of Data Structures & Algorithms I

I got this question in quiz.