Pocket Gems Interview Question

Graph copy, least missing number