Given an integer n, return the number of ways you can write n as the sum of consecutive positive integers.