Haha, I've happily been in the "interviewer" side of this two times:
One time, as part of a DevOps interview I asked the candidate to run something in a POSIX OS every 15 seconds using a cronjob (that was the general idea). Crontab granularity is only in minutes, so you have to use your head or Google to get a Cronjob answer. The interviewee however told me about the 1 minute granularity of CronJob, and offered instead to create a small service on init.d. with a while/sleep 15. I loved his response :-)
The other was someone who, while solving a binary search problem without a ceiling integer value, used the fact that his language of choice C++ has an INT_MAX macro defined to set the limit of the search... TOUCHE.
As an interviewer I personally love when these sort of things happen because it shown the interviewee is really thinking about the problem.