Help is needed

Hello, everyone. 2 months ago I bought a MacBook and now when I put it to charge, it stops charging in five minutes. What can it be?