Flexport Interview Question

An easy question about a combination using backtracking