Restroworks interview question

Their focussed was on javascript