Square Yards interview question

Asked to solve a question and implement the solution around a cycle dependency tree and data management using Java, all within one hour time frame. The interview was over Zoom.