Domanda di colloquio di Meta

Q. How would you design an algorithm to solve problem at first.