solve digital-display test