The chief guest handed over the prize to ____ had solved the quiz perfectly.
Note
The chief guest handed over the prize to whoever had solved the quiz perfectly.
The chief guest handed over the prize to whoever had solved the quiz perfectly.