Cubic Interview Question

Python coding: input a series of numbers.