IXL Learning Interview Question

Hackerrank, 4 exercises