Pregunta de entrevista de MongoDB

How to square integers in array and keep it sorted