Your question did not include reference to any other runners. Baseball umpires refer to that as "cheating." :p
Your answer is also incorrect.
Junior having walked in your scenario (b), the defense now appeals batting out of order, since Shorty was the proper batter. Junior is removed from base, and Shorty is called out.
Junior comes up to bat, faces 5 more pitches, and walks again. Alas, Lefty was the proper batter, the defense appeals BOO again, and Lefty is called out. 2 outs.
Junior comes up to bat yet again, faces 5 more pitches, and walks again. Unbelievable perhaps, but Chuck was the proper batter, the defense appeals BOO again, and the side is retired.
Junior comes up to lead off the next half inning, faces 5 more pitches, and walks again. Well, wouldn't you know, but he's out of order....
You'll complain that he walked the first time the defense appealed BOO, so the correct answer is still 10. But that's NOT what the box score will record, so it never happened: since he did not legally reach base, he did not in fact walk.
You should be able to get through the entire lineup with BOO, making the correct answer something like 50 pitches.