Pregunta de entrevista de BCS Technology

Basic theory questions. Code challenge.