Electrolux interview question

Which method did you apply to solve your last task?