Expedia Group Interview Question

Surprisingly got some pointer math and C++ syntax that I wasn't prepared for.