Period stopping

Can anybody help me. So my last period was late but when it came first day it was heavy then when I woke up on the 2nd day it had completely stopped then hours later it started again. This went on for 1 more day until it turned brown and stopped. What does that mean?