EX Squared interview question

DSA and skill based question