Class to extend DP solution for big numbers