completed sumofOddPlace() method