Bloomberg Interview Question

Was asked a stack based Algo and a backtracking question.