Given an integer A representing the square blocks. The height of each square block is 1.
The task is to create a staircase of max height using these blocks.
The first stair would require only one block, the second stair would require two blocks and so on.
Find and return the maximum height of the staircase.
The only argument given is integer A.
Return the maximum height of the staircase using these blocks.
0 <= A <= 10^9
Input 1: A = 10 Output 1: 4 Input 2: A = 20 Output 2: 5
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.