Pi Beam Labs interview question

Assignment related, so basically how you solve the assignment.