No-ball drama: The Law that meant Bangladesh had to win the match twice

Why did Mosaddek Hossain have to re-bowl the final delivery?