Refactored the hardest dp