Eightfold interview question

Backtracking and greedy approach coding questions