Determine which thread prints which letter, then trace the wake-up chain induced by the signal() calls. The printed sequence must be BCA repeated, so T2 must go first (it prints B), and T1 and T3 must both be blocked until they are released by their predecessors. The initial semaphore values must therefore allow exactly T2 to enter and block the other two.
The letters must be printed in the cyclic order B, C, A. Since T2 prints B and waits on S1, T2 needs S1 = 1 to start. T1 (prints C, waits on S3) and T3 (prints A, waits on S2) must both be blocked until released by their predecessors, so S3 = 0 and S2 = 0 initially. This gives S1 = 1, S2 = 0, S3 = 0, which yields BCA BCA BCA...