Amazon Interview Question

How to process a number of inputs