Proper Cloth interview question

Excel formula technical challenge