nice brother .. i was thinking of using backtracking as it is similar to sodoku solver.. but then i realized numbers can be same.. so it is better to apply greedy.... i believe leetcode confused me with different no. of solutions for the same problem.. now this question seems more like an easy one..