Answer
The maximum value of $~~a_1~~$ is $~~\frac{L}{2}$
Work Step by Step
The center of mass of the top brick must be directly above part of the second brick. If the center of mass of the top brick is above only air, the top brick will fall.
Note that the center of mass of the top brick is at the middle of the brick.
Therefore, the maximum value of $~~a_1~~$ is $~~\frac{L}{2}$