Okta Interview Question

Leetcode medium question involved backtracking