Give me some constraints; my answer is showing time imit off
NO input format and Constraints displayed
Solve it mathematically on paper and get the answer.
Write O(1) time solution 
Give me some constraints; my answer is showing time imit off
Solve it mathematically on paper and get the answer.
Write O(1) time solution 