Given a number n
, return True
if n
is in the range 1..10, both are included.
Unless outSideMode is True
, in which case return True
if the number is less or equal to 1, or greater or equal to 10.
solution(5, False) → True
solution(11, False) → False
solution(11, True) → True