LinkedIn interview question

3 DSA question in HackerRank platform