DANA Interview Question

Two different sets of hackerrank tests