I wrote a simple function to add odd numbers and even numbers separately, for between given two numbers