My opinion only, but I'll predict that your friend isn't going to be happy with 10.9 or 10.10 on that year iMac.
I'd recommend 10.8.5 as the best choice...
Can anybody please comment on their overall experience with Yosemite on a 2007 iMac?
Thanks in advance