Pergunta de entrevista da empresa Zscaler

Given a array can you make every element equal i.e, operation is to remove a factor from one element and multple it to other.