Задание

I ………… just …………… writing a letter FINISH

when the door bell rang.

had finished

had been finishing