Why do you want to work for a company that gives you days of unpaid homework? If you're given such a task, simply state that you don't think you'll be a good fit for them, and move on. It is an employees job market at the moment, and every tech company has several unoccupied openings.