Interaction of Shock or Rarefaction with a Bubble