Problems with tag O(n^2 * 2^n)