Wow, that's self confidence. Paying someone for the homework problem feels semi-okay. But what if you have a no-moonlighting clause at your current job?
But asking to be paid during the interview seems too much, even though you could have spent 3 days of your life, traveling each way plus the interview day.