628. Check and fill in the gaps