# Stuck on Team Building

I don’t understand much of the editorial at all, but let’s start with the fact that i don’t get how there’s an O(N^2M^2K) solution to compute f(N, M, K).