Solved my First COdeChef Contest Problem :D