Element API: Remove additional set of square brackets from JSON-String
Though I don't know the Element API, have you tried

    return $allOverChallenges;


instead of

    return [
        $allOverChallenges
    ];


It looks like you are simply adding these brackets (Array) on the return.