For these type of questions to be solved , we use a graphical algorithm.
The Havel–Hakimi algorithm is an algorithm in graph theory solving the graph realization problem, which says if there exists for a finite list of nonnegative integers a simple graph such that its degree sequence is exactly this list. For a positive answer the list of integers is called graphic. The algorithm constructs a special solution if one exists or proves that one cannot find a positive answer. This construction is based on a recursive algorithm.
Let me take an example,say this degree sequence,
5,3,3,3,3,2,2,2,1,1,1
1) Deleting 5 which is the first term, and then substracting -1 from the next 5 terms, we have 2,2,2,2,1,2,2,1,1,1
2) Reordering this we have, 2,2,2,2,2,2,1,1,1,1
3) As i said, it is recursive algorithm, repeat the above steps
Deleting 2 which is now the first term, and then substracting -1 from the next 2 terms, we have 1,1,2,2,2,1,1,1,1.
4) Reordering and repeating above steps, we have, 1,1,1,1,1,1,1,1
5) At last , we have 0,0,0,0
As all the terms are 0,means it is a graphical
If -1 would have occured in any of the zeroes, then it i not graphical
Now , come to ur example,
A) 6, 6, 6, 6, 3, 3, 2, 2
We do the above procedure, we have 0,0,-1,-1 , hence not graphical
B) 7, 6, 6, 4, 4, 3, 2, 2
We do the above procedure, we have 0,0,0,0 , hence graphical.