XYZ interview question

Round 1: Coding Test Round 2: DSA Round Round 3: HR Round