The chain code for the following shape is given as:
(a) 000030032232221211
(b) 003010203310321032
(c) 022332103210201330
(d) 012302301023100321
This question was posed to me during an online interview.
Origin of the question is Boundary Descriptors topic in section Representation and Description of Digital Image Processing