2 ms·One way is to return the list along with its length.by tome 6y agoOne way is to return the list along with its length.