Regenerative braking systems exist in all modern electrics and hybrids. They attempt to put as much electricity back into the battery as they can by capturing the kinetic energy of the vehicle as it slows down then converting it to electricity which then helps charge the battery.
First and second laws of thermodynamics. You don't need to be an engineer, a high school education will do.