Pergunta de entrevista da empresa Akima

I was asked to construct a class