OnGraph interview question

Questions related to tricky JS