Ramp interview question

API interaction hashmap and dfs question