Each side of a cube is 2 unit in length. This cube is kept on a table such a way that one surface (i.e., 4 vertices) of it completely touches the table. At this position, a red point is drawn on the center of the upper surface. Now the cube is being rotated along a straight line towards a certain direction. At the time of rotation, at least two vertices of the cube are in touch with the table. Rotation is stopped when the red mark reached its initial position. Total distance traveled by the red mark is $$(\sqrt{{b}}+1)\pi$$
What is the value of b?
Source: Bangladesh Math Olympiad 2017
I am facing trouble to find the distance travelled by the red mark. Is it a straight line from start to end or a curved line (almost a circle) which is travelled by the red mark at every rotation of the cube?
If I understand the problem correctly, the answer should be b=5 as seen from the following picture: