Activity Selection Problem Using Dynamic Approach Theory