HackerRank Interview Question

See interview process answer.