Mujin Interview Question

technical interview - Medium leetcode question in C++