Pergunta de entrevista da empresa BCS Technology

Basic theory questions. Code challenge.