'It was difficult for us to complete the task.' If you rewrite the sentence beginning with 'We had' what should be the next words in the sentence?

difficulty to finish the task

difficulty for task completion

difficulty in completing the task

to finish task difficulty

No correction is required