A simpler approach,
If we simply trace the table, then we can see this sequence will give the required output with input string length as 3.
present state = 00
00 (i/p = 1 , o/p = 0, A=0, B=0) → 01 (i/p = 0 , o/p = 0) → 10 (i/p = 1 , o/p = 1) → 01 .(A=0, B=1 , o/p = 1)
So input string is 101. Length = 3. Option (A).