Uptake Interview Question

Coding questions using stack and map