Expedia Group Interview Question

Simple Coding Questions based on DP or trees and Linked lists