HARMAN Interview Question

Javascript question on promise and nodejs