In1To10

Given a number n, return true if n is in the range 1..10, inclusive. Unless "outsideMode" is true, in which case return true if the number is less or equal to 1, or greater or equal to 10.

This exercise was converted to PLM from the excellent exercising site http://codingbat.com/