Infosec Ventures interview question

reverse of string, types of join, array sort without function