how to solve any data structures question