Pergunta de entrevista da empresa Equilibrium Energy

I was asked to write code related to patterns in battery readings over time.