I have done the code using python that must correct but I do not know why not accepted?
@rishravi937 hi range is under int so will be accepted using int ,use dp instead of recursion bro.