I recently took a codility interview and I bombed one of the questions. Does anyone know what the solution should have been?