human
Find profession in a special family | Returns ' e ' if profession of node at given level and position is engineer . Else doctor . The function assumes that given position and level have valid values ..
Base case.
Recursively find parent 's profession. If parent  is a Doctor, this node will be a Doctor if it is  at odd position and an engineer if at even position.
If parent is an engineer , then current node will be an engineer if at add position and doctor if even position ..
Driver code"
Solution in Python:
assistant
#Here is code to find profession in a special family and the other steps required.
 def findProffesion ( level , pos ) :
	if ( level == 1 ) :
		return ' e '
	if ( findProffesion ( level - 1 , ( pos + 1 ) // 2 ) == ' d ' ) :
		if ( pos % 2 ) :
			return ' d '
		else :
			return ' e '
	if ( pos % 2 ) :
		return ' e '
	else :
		return ' d '
if __name__ == ' _ _ main _ _ ' :
	level = 3
	pos = 4
	if ( findProffesion ( level , pos ) == ' e ' ) :
		print ( " Engineer " )
	else :
		print ( " Doctor " )