Enmovil interview question

converting a sequence into list