Necessary and sufficient conditions to perform Spectral Tetris