Given a positive integer n, find the pivot integer x such that the sum of all integers from x inclusive is equal to the sum of all integers from x to n inclusive.
Return the integer x. If no such integer exists, return
Constraints:
n
Given a positive integer n, find the pivot integer x such that the sum of all integers from x inclusive is equal to the sum of all integers from x to n inclusive.
Return the integer x. If no such integer exists, return
Constraints:
n