Infosys interview question

Round 1: DSA, Round 2: DSA-SQL.