ServiceNow interview question

mostly based on Javascript, SQL