``` ruby
2.1.1 :001 > require 'uri'
 => true
2.1.1 :002 > URI.join("https://google.com")
 => #<URI::HTTPS:0x00000101853ea8 URL:https://google.com>
2.1.1 :003 > URI.join("https://google.com", "/api/")
 => #<URI::HTTPS:0x00000101869618 URL:https://google.com/api/>
2.1.1 :004 > URI.join("https://google.com", "api")
 => #<URI::HTTPS:0x0000010136ede8 URL:https://google.com/api>
2.1.1 :005 > URI.join("https://google.com", "api", "heyo")
 => #<URI::HTTPS:0x0000010137f210 URL:https://google.com/heyo>
2.1.1 :006 > URI.join("https://google.com", "/api", "heyo")
 => #<URI::HTTPS:0x00000101883388 URL:https://google.com/heyo>
2.1.1 :007 > URI.join("https://google.com", "/api", "/heyo")
 => #<URI::HTTPS:0x0000010138f368 URL:https://google.com/heyo>
2.1.1 :008 > URI.join("https://google.com", "/api/", "heyo")
 => #<URI::HTTPS:0x0000010139f218 URL:https://google.com/api/heyo>
2.1.1 :009 > URI.join("https://google.com", "/api/", "/heyo/")
 => #<URI::HTTPS:0x000001013aedf8 URL:https://google.com/heyo/>
2.1.1 :010 > URI.join("https://google.com", "/api/", "heyo/")
 => #<URI::HTTPS:0x000001013be9d8 URL:https://google.com/api/heyo/>
2.1.1 :011 > URI.join("https://google.com", "/api/", "heyo/", "/yolo")
 => #<URI::HTTPS:0x000001013ccf10 URL:https://google.com/yolo>
2.1.1 :012 > URI.join("https://google.com", "/api/", "heyo/", "/yolo/")
 => #<URI::HTTPS:0x000001013df1d8 URL:https://google.com/yolo/>
2.1.1 :013 > URI.join("https://google.com", "/api/", "heyo/", "/hmm/")
 => #<URI::HTTPS:0x000001013cce20 URL:https://google.com/hmm/>
```