Custom Ink interview question

Javascript