Design a battery-life predictor and cold-start strategy | Google Interview Question