Answer:
If the octagon is clockwise, then after 5 times 45 increments A' will coincide with F.
If the octagon is counterclockwise, then after 3 times 45 increments A' will coincide with F.
Explanation:
Case 1: Let the octagon is clockwise
It is given that a regular octagon ABCDEFGH rotates 360 degree clockwise about it's center.
There are 8 vertices and the central angle between two consecutive vertices is 45 degrees.
Central angle between AB is 45 degree.
Central angle between AC is

Central angle between AD is

Similarly,
Central angle between AE is

Central angle between FA is

Therefore after 5 times 45 increments A' will coincide with F.
Case 2: Let the octagon is counterclockwise




Therefore after 3 times 45 increments A' will coincide with F.