Rubrik interview question

3 HackerRank questions: 1 easy / 2 hard