Add a simple dp - optmization problem