FLYR Interview Question

code challenge for a juniors position!!!