Pergunta de entrevista da empresa January

Implement a method of a data structure