RainScales Interview Question

How did you solve hard problem?