Multi-step machines may apply different rules per step—track one column across all steps first.
If a middle step is given, work forward and backward to infer missing operations.
Validate your rule on all provided pairs before answering the target row.