The function is expected to return an INTEGER_ARRAY.
The function accepts following parameters:
1. INTEGER_ARRAY time
2. INTEGER_ARRAY direction
If in the previous second the turnstile was not used (maybe it was used before, but not at the previous second), then the person who wants to leave goes first.
If in the previous second the turnstile was used as an exit, then the person who wants to leave goes first.
If in the previous second the turnstile was used as an entrance, then the person who wants to enter goes first.