Procter & Gamble interview question

Shape manipulation