PrintRestArrayInRange fix + more test cases