Lenovo Interview Question

How to add multiple elements in a list in one line?