Infosys interview question

fibonacci series, sorting