Skype interview question

How to solve an algorithmic problem