I tried this question using list but i am not able to access the list element how to access it as we do in array a[k] how we do it in list