How to approach solving a challenge during a coding interview