Answer:
Remember that regular octagon is a figure with eight sides, where all of them are equal. The image attached shows a regular octagon.
So, if we want to map the octagon on to itself using rotation, we need to rotate 90° clockwise, or make to moves of 45° each, that way the octagon would be as the original one because it has equal sides.
When you rotate the first 45°, you would have like an inclined octagon, so you need to rotate another 45° to get the same octagon as the original.
So, the minimum degree would be 45°, doing it twice.