Input: maxFrames, then a reference string.
For every number of frames f = 1 … maxFrames, count the faults of FIFO and LRU and print a table:
frames FIFO LRU
1 12 12
2 12 12
3 9 10
(format %6d %4d %3d). Then print Belady anomaly (FIFO faults increase): 3->4 listing every f−1->f where FIFO's faults increased (comma-separated), or No Belady anomaly.