We can also solve this using the principles of Newtonian mechanics in an inertial (ground) frame. In this frame, both blocks $P$ and $Q$ are accelerating to the right with an acceleration $a = \frac{g}{2}$ along with the cube $S$.
For block $P$ on the top surface:
The horizontal net force is provided by the tension $T$ in the string. According to Newton's second law:
$$T = m_P \times a = 2 \times \frac{g}{2} = g$$
For block $Q$ against the vertical side surface:
Horizontally, it has an acceleration $a = \frac{g}{2}$. This acceleration is caused by the normal force $N$ exerted by the wall of the cube:
$$N = m_Q \times a = 1.5 \times \frac{g}{2} = 0.75g$$
Vertically, block $Q$ does not accelerate (it is stationary relative to the cube). Therefore, the forces must balance:
$$T + f = m_Q g$$
Substitute the values: $g + f = 1.5g$, which gives the friction force $f = 0.5g$ acting upwards.
We know that the static friction force $f$ must satisfy the condition $f \leq \mu N$. Substituting our derived values:
$$0.5g \leq \mu(0.75g)$$
Dividing both sides by $g$ and rearranging for $\mu$:
$$\mu \geq \frac{0.5}{0.75} = \frac{2}{3}$$
$$\mu \geq 0.666...$$
Rounding to two decimal places, we get $\mu = 0.67$.