Buju Design interview question

Question from subject and basic rules