Grinding leetcode or similar things would probably work if you have the right work ethic. You could also consider a coding bootcamp like Lambda School. Way cheaper/less time than a 4-year degree, and they have much better job placement programs. (And will probably teach you the skills needed to pass an interview better than most 4-year undergrad programs would.)