Beam interview question

Programming questions in C++ and Python