Minimum Steps to one bottom up wrong answer


this code is giving different answers with top down and bottom up method for 125 and other values