Implement stack and interval algorithms with tests | Rippling