Check if the position is in the input range
position in form of line and character number.
range in from of start and end position.
Check if the position is in the input range