Yes I indeed tried that and ran into the same problem as you..
I thought that maybe at first c/2+c/3/(1+(1/2).(1/3)) is to be done. This velocity is the velocity of the particle in lab frame towards the x direction when it has traversed the "base" of the square. And then it says, it "changes" the direction without changing the speed...So that much speed is now towards the y direction...Then we apply the velocity addition formulas again(this time just multiply with 1/gamma)...and so on..
I did this......but no answer matched :)