InterviewDB Question

Battery Charging Profit