Chain Inspection (CodeEval)