The algorithm and program design course‘ s homework on Sicily soj