Traveloka Interview Question

Some Code Optimization with Pseudocode