Using scan to loop across differenet length of vectors

Can you share the code you attempted?