Acorns interview question

Simple array question and resolving promises