Pregunta de entrevista de Cognite

Python Coding to find some numbers.