Some not working DSA code