AFS Technologies interview question

How I solved a difficult problem in the past.