Degree of Node 7 in a Given Tree

Company: Walmart_3oct

Difficulty: easy