Grammatical name and function of "whose cake is the best"

The phrase "whose cake is the best" is an interrogative sentence that functions as an indirect question within a larger sentence or conversation. It asks about the possessive form of the cake and seeks to determine which cake is considered the best.