Jumia Interview Question

it was a codility task