I came across a challenge on Hacker-rank where one was supposed to calculate a level of happiness based on two input arrays. To read those in I tried the following: