Enmovil Interview Question

converting a sequence into list