Question d’entretien chez Paytm

Array and Ovject flatten code. Not to use ES6 features