Wingify interview question

Javascript based question In DSA HashMap and Recursion based problems