SDG Group interview question

exercise with excel