Coding Ninjas interview question

Subset sum, N queens problem