Thomson Reuters interview question

ML and Python questions through HackerRank