Pocket Gems interview question

Graph copy, least missing number