They shouldn't have to compensate you for a trivial exercise to prove your ability. This isn't production-code type of problem, these are usually toy problems just designed to show you can code and you care about quality.
Something that takes more than a couple hours is no longer trivial.