Infrrd interview question

Basic algorithms questions and sorting