phagos interview question

A live coding interview and then a code comprehension in javascript exercise