I _______ my work when Aslam _______ to see me.

I _______ my work when Aslam _______ to see me.

Explanation

"Had done" is past perfect, showing the work was completed before Aslam arrived.

"Came" is simple past, indicating the time Aslam came to see you.