Questions: given you are a consultanct who need to travel to two cities and need to get most profit. given two array of Integer, CityA and CityB where CityA(i) -> is earnings of consultant on day i, see what path consultant should take to get maximum earningas.
if Consultant is travelling from city A to city B -> earnings =0
you can start from either CityA or CityB
exam:
CityA : [23,4,5,10}
CityB : [21,1,10,100]
answer: "ATBB"
Similar to : https://leetcode.com/discuss/interview-question/762690/google-telephone-interview-coding-question