Pregunta de entrevista de Clean Power Research

The coding questions were Leetcode medium to hard.