using System.Collections.Generic;
public static void Main()
var transformationOne = new TransformationOne();
var inputs = new List<int> { 1, 2, 1, 0, 3, 2 };
foreach (var input in inputs)
var newResult = transformationOne.Calculate(input);
Console.WriteLine(newResult);
private int _currentResult;
public int Calculate(int value)