Add solution and tests for only
Add solution and tests for range