Add solution for uva 12577 - Hajj-e-Akbar