Pergunta de entrevista da empresa Nagarro

programming question on Object modification and complexity reduction