Implement features for a spreadsheet class. Then, you have to implement a "sum" operation that takes multiple cells as an input. Then you'll be asked how to detect cycle.
Sigiloso
Depth first search. For cycle detection, keep an encountered set around.