Publicis Sapient interview question

Sorting arrays, objects, looping over an array of objects, etc OOJS in depth