Added rightMost function with passing tests