Solved problem 260 base case