Money Collection

Mr.savani is collecting a money from n students for a trip, ┬álike collect $1 from 1st student, $3 from 3rd student and so on.. but it should not include k (unlucky number) into sum. if it includes k into sum, then ignore that student   Example: n = number of student, k = unlucky number ...