BNT SOFT interview question

String array sorting program and oops concept