Sounds like a loose battery terminal, Google "loose battery terminal fix"
When the ignition is switched to "on" and trying to crank the car, would sometimes lose power. Doing so again the car would gain power back. Doing this loop 3 times and sometimes up to 20 times the car finally starts! LOL so scared the car would lose power in the middle of driving.Check the battery terminals and ground.
Sent from my SAMSUNG-SM-G935A using Tapatalk