ClearTax interview question

vanilla javascript, dom, array methods