https://leetcode.com/problems/arranging-coins


Time Limit Exceeded


```
class Solution {
    public int arrangeCoins(int n) {
        Integer i = 0;
        Integer level = 0;
        while (true) {
            i += level + 1;
            level += 1;
            if (i == n) {
                return level;
            } else if (i > n) {
                return level - 1;
            }
        }
    }
}
```
