BeyondScale interview question

Assignment and review about the assignment