EarnIn interview question

do an assignment