Arista Networks Interview Question

search in bitonic array stack vs heap memory allocation