InstaDeep interview question

Technical coding test using HackeRank