given integer get Minimum step to find 1
Minimum step find 1 using dynamic tabulation method