def sqrt(number):
    """
    Calculate the floored square root of a number

    Args:
       number(int): Number to find the floored squared root
    Returns:
       int: Floored Square Root
    """
    high = number
    low = 0
    while low <= high:
        mid = (low + high) // 2
        midsquare = mid * mid
        next_midsquare = (mid+1) * (mid+1)
        if midsquare == number or midsquare < number < next_midsquare:
            return mid
        elif midsquare > number:
            high = mid - 1
        else:
            low = mid + 1