having two lists with some elements, how can I write a function that takes pointers of both lists and combines elements of these two list, by alternating the elements of each li