Block interview question

Technical coding problem on HackerRank with language of your choice