Sequential Function Chain Evaluator - Coding problem | OneNoughtOne