This is a verified interview question from Juspay-hiring-challenge. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Locking the tree of space - Juspay Hiring Challenge Coding Assesment Round" covers key patterns like System Design.
"You have a world map represented as an M-Ary tree. You need to define three operations on it: lock(X, uid), unlock(X, uid), and upgradeLock(X, uid), where X is the name of a node in the tree and uid is the user who is performing the operation. [](https://res.cloudinary.com/dc1rsg5t9/image/upload/a_-45,co_white,fl_layer_apply,g_center,l_text:Arial_80_bold:Codinzhub,o_20/v1783056701/oa_hub_uploads/ix2pt4hnqmt8yehx5t1e.jpg) [](https://res.cloudinary.com/dc1rsg5t9/image/upload/a_-45,co_white,fl_layer_apply,g_center,l_text:Arial_80_bold:Codinzhub,o_20/v1783056701/oa_hub_uploads/d0ogbn2ehosnvvt89osr.jpg) [](https://res.cloudinary.com/dc1rsg5t9/image/upload/a_-45,co_white,fl_layer_apply,g_center,l_text:Arial_80_bold:Codinzhub,o_20/v1783056701/oa_hub_uploads/blcykaozyampxpkeyxrs.jpg)"
Join thousands of developers practicing for Juspay-hiring-challenge.