Acorns Interview Question

Simple array question and resolving promises