How to answer this coding question from a top hedge fund?
I was given this question in the 2nd round of coding interview with a well-known hedge fund. This question cannot be found on leetcode as far as I know. You are given 3 input arrays, A, B and X. At each iteration, you can select any element Xi from X, choose a subarray within A, and transform all e