DigiValet interview question

array functions