Studybuddy interview question

Help me solve this math question