Describe a time you solved a problem involving array and linked-list manipulation using careful pointer or index handling.