think-cell interview question

Write range implementation without comparison