make right index value inclusive
medium of three
make right index value inclusive
medium of three
all tests ok