koppla interview question

JavaScript code corrections and async await