EntHire interview question

Round 1: 2 coding questions based on DS Algo