FLYR interview question

code challenge for a juniors position!!!