Walk me through how you would solve a basic Data Structures and Algorithms problem, such as reversing a linked list or finding duplicates in an array.