Pregunta de entrevista de MBC Group

pretty straight forward, nothing difficult