Question d’entretien chez Jio

Center a div in different ways javascript problem solving question flatten an array