X interview question

Technical Coding questions through HackerRank