Pregunta de entrevista de Layer6 AI

Leetcode, implement a class with several functions.