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
    """
    if number is None:
        return 'Please provide a number'

    if number < 0:
        return 'Please provide a number greater than 0'

    if number in (0, 1):
        return number

    numbers = [i for i in range(1, number//2)]
    idx = number // 4

    while (numbers[idx] * numbers[idx]) > number:
        idx //= 2

    while (numbers[idx] * numbers[idx]) < number:
        idx += 1

    if (numbers[idx] * numbers[idx]) == number:
        return numbers[idx]
    else:
        return numbers[idx - 1]