How to solve a DSA Problem