Which one is correct form of 'Who gave you this pen?'

Answer: 
By whom were you given this pen ?
Which one is correct form of 'Who gave you this pen?'