Maytag top load washer

My washing machine squeals at the end of the spin cycle I assume that it’s the brake. How do I replace it?